package oaSystem.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import oaSystem.entity.Employee;

public interface EmployeeMapper {
	Employee fetchEmployeeById(int id);
	
	List<Employee> getEmployeeByDepartmentIdAndSearch(@Param("departmentId")Integer departmentId,
											@Param("skip")int skip,
											@Param("takes")int takes,
											@Param("search")String search,
											@Param("nrsearch")String nrsearch);
	
	List<Employee> findEmployeeByDepartmentId(Integer departmentId);
	
	void addEmployee(Employee employee);
	
	void updateEmployee(Employee employee);
	
	
	
	Employee checkLogin(@Param("nr")String nr,@Param("password")String password);
	
	int getEmployeeCount(@Param("departmentId")Integer departmentId,
			@Param("search")String search,
			@Param("nrsearch")String nrsearch);
	
}
